package com.kws.system.domain.payment.info;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <b>QueryServerOrderInfo</b>
 *
 * @description: QueryServerOrderInfo <br>
 * @date: 2024/11/22 17:37 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class QueryServerOrderInfo {
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "项目编号")
    private Long itemId;

    @ApiModelProperty(value = "项目名称")
    private String itemName;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "服务id")
    private Long serverId;

    @ApiModelProperty(value = "服务名称")
    private String serverName;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderPrice;

    @ApiModelProperty(value = "质保金")
    private BigDecimal qualityGuaranteeFund;

    @ApiModelProperty(value = "收货人Id")
    private Long userId;

    @ApiModelProperty(value = "收货人姓名")
    private String consignee;

    @ApiModelProperty(value = "收货人联系电话")
    private String consigneePhone;

    @ApiModelProperty(value = "付款方式0自付 1贷款")
    private String payWay;

    @ApiModelProperty(value = "项目阶段0勘察设计、1备案、2采购、3施工、4并网")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "服务列表")
    private List<QueryServerOrderInfo> severList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Long getServerId() {
        return serverId;
    }

    public void setServerId(Long serverId) {
        this.serverId = serverId;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getQualityGuaranteeFund() {
        return qualityGuaranteeFund;
    }

    public void setQualityGuaranteeFund(BigDecimal qualityGuaranteeFund) {
        this.qualityGuaranteeFund = qualityGuaranteeFund;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getPayWay() {
        return payWay;
    }

    public void setPayWay(String payWay) {
        this.payWay = payWay;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return DateUtil.format(createTime, DatePattern.NORM_DATETIME_FORMATTER);
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<QueryServerOrderInfo> getSeverList() {
        return severList;
    }

    public void setSeverList(List<QueryServerOrderInfo> severList) {
        this.severList = severList;
    }
}
